package com.gy.File;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

@Data
@TableName("result_file_info")
@ApiModel("文件信息")
public class fileInfo {
    @ApiModelProperty("文件ID（主键）")
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    @ApiModelProperty("PDF页数")
    @TableField(value = "page_count")
    private Integer pageCount;


    @ApiModelProperty("文件哈希值（MD5/SHA-1）")
    @TableField(value = "file_hash")
    private String fileHash;

    @ApiModelProperty("文件名称")
    @TableField(value = "file_name")
    private String fileName;

    @ApiModelProperty("存储路径（如 OSS URL 或本地路径）")
    @TableField(value = "file_path")
    private String filePath;


    @ApiModelProperty("上传时间")
    @TableField(value = "upload_time")
    private Timestamp uploadTime;
}
